<?php

namespace App\Logic;

class FactoryPay
{
    protected $stratehy;

    public function __construct(PayAbstract $stratehy)
    {
        $this->stratehy = $stratehy;
    }

    /**
     * @return title 封装了逻辑层 然后所有执行的配置统一调用这个方法
     * @return mixed
     */
    public function makeReservation()
    {
        return $this->stratehy->abstractFunction();
    }
}
